window.sc_mixin = {
  data(){
    return {      
      loading: true,
      loadingIndex: 0,
    }
  },
  created() {    
    this.initloading();
  },
  methods: {    
    initloading(){
      this.loadingIndex = this.$toast.loading({
            message: "加载中...",
          forbidClick: true,
          duration:0,
          loadingType: 'spinner',
      });
    },
    finishLoading(){
        this.loadingIndex.clear();
        this.loading =false;
    },
  }
}